package constructor.adaptor.classes;

public class Phone {

    public void charging(Voltage5V voltage5V) {
        if (voltage5V.output5V() == 5) {
            System.out.println("可以充电");
            return;
        } else {
            System.out.println("不能充电");
        }
    }

}
